package com.ruoyi.match.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.match.mapper.LeaderTeamMapper;
import com.ruoyi.match.domain.LeaderTeam;
import com.ruoyi.match.service.ILeaderTeamService;

/**
 * 队长队伍Service业务层处理
 * 
 * @author zhangrui
 * @date 2025-03-26
 */
@Service
public class LeaderTeamServiceImpl implements ILeaderTeamService 
{
    @Autowired
    private LeaderTeamMapper leaderTeamMapper;

    /**
     * 查询队长队伍
     * 
     * @param userId 队长队伍主键
     * @return 队长队伍
     */
    @Override
    public LeaderTeam selectLeaderTeamByUserId(Long userId)
    {
        return leaderTeamMapper.selectLeaderTeamByUserId(userId);
    }

    /**
     * 查询队长队伍列表
     * 
     * @param leaderTeam 队长队伍
     * @return 队长队伍
     */
    @Override
    public List<LeaderTeam> selectLeaderTeamList(LeaderTeam leaderTeam)
    {
        return leaderTeamMapper.selectLeaderTeamList(leaderTeam);
    }

    /**
     * 新增队长队伍
     * 
     * @param leaderTeam 队长队伍
     * @return 结果
     */
    @Override
    public int insertLeaderTeam(LeaderTeam leaderTeam)
    {
        return leaderTeamMapper.insertLeaderTeam(leaderTeam);
    }

    /**
     * 修改队长队伍
     * 
     * @param leaderTeam 队长队伍
     * @return 结果
     */
    @Override
    public int updateLeaderTeam(LeaderTeam leaderTeam)
    {
        return leaderTeamMapper.updateLeaderTeam(leaderTeam);
    }

    /**
     * 批量删除队长队伍
     * 
     * @param userIds 需要删除的队长队伍主键
     * @return 结果
     */
    @Override
    public int deleteLeaderTeamByUserIds(Long[] userIds)
    {
        return leaderTeamMapper.deleteLeaderTeamByUserIds(userIds);
    }

    /**
     * 删除队长队伍信息
     * 
     * @param userId 队长队伍主键
     * @return 结果
     */
    @Override
    public int deleteLeaderTeamByUserId(Long userId)
    {
        return leaderTeamMapper.deleteLeaderTeamByUserId(userId);
    }
}
